Converts the specified string so as certain special characters are encoded into named or numeric entities.
Parameters:
s
markupChars
true
).
The following table shows all such characters and the entities into which they are encoded:
Character | Entity |
< |
< |
& |
& |
> |
> |
quoteChars
false
):
Character | Entity |
" |
" |
controlChars
false
).
For example, '\n'
will be encoded as
nonAsciiLetters
false
).
The non-ASCII letters are the characters whose codes >= 128 and for which the Java method
java.lang.Character.isLetter()
true
.
Other non-letter characters with the codes >= 128 are always encoded by this method.
For example, € is encoded as €