It looks like you're new here. If you want to get involved, click one of these buttons!
Hello!
ElHTMLView.Caption := '&z=12 Test'; //it shows only 'Test'
if remove the first '&' symbol or place a space after it, it works ok, but I need to show ampersand symbols in URLs... How can I make it work properly?
-Dmitry
Comments
or<code>&amp;
&#38;
So it is necessary to pre-process text before loading into elhtmlview.. All browsers show this character correctly ('&z' like '&z', '&' like '&'), I think this is a bug in your html renderer. Or bug/feature. )
All browser show this correcter because the are very error-tollerant in this area.
try to use following html-Code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>hello html</title>
</head>
<body>
Test Text1: &b<br>
Test Text2: &b
</body>
</html>
and do a validation via http://validator.w3.org