davsclaus opened a new pull request, #30847:
URL: https://github.com/apache/camel/pull/30847
## Description
The camel-website build fails in `check:html` on the Simple functions page:
```
public/components/next/languages/simple-functions.html
9:75870 error Unrecognized character reference "&foo;"
unrecognized-char-ref
```
Asciidoctor restores character references such as `&foo;` even inside inline
code, so the HTML gets the raw, unknown entity `&foo;` (added with the
`unescape` function in #30599). Known entities pass the check but render as the
character instead of the escape, so the docs showed `${escape(html, 'Tom &
Jerry')}` returning `Tom & Jerry`, and the `unescape` table listed `& < > " '`
instead of the entity names.
This PR wraps them in a literal passthrough (`` `+&foo;+` ``), as
`ssh-component.adoc` and `endpoint.adoc` already do:
- `simple-functions.adoc`: the `escape` / `unescape` examples and table, and
the `&foo;` sentence
- `velocity-component.adoc`: `Monday & Tuesday`
- 4.24 upgrade guide: `AT&T` (rendered as "AT&T instead of AT&T")
- the catalog copies of the two component docs
The `\"` / `\'` occurrences are already escaped with a backslash
and are left as they are.
## Target
- [x] I checked that the commit is targeting the correct branch (Camel 4
uses the `main` branch)
## Tracking
- [x] [CAMEL-27274](https://issues.apache.org/jira/browse/CAMEL-27274)
_Claude Code on behalf of Claus Ibsen (@davsclaus)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]