I have a peculiar situation where I have written VBA code that performs a few find/replace actions on HTML special character codes.
I am trying to publish this code to my website in HTML format, but the part where my code references codes like " or & are turning into the actual HTML characters (eg &).
Is there an HTML trick to prevent this from happening, so I can literally display the text " or & in my HTML code?
>Solution :
You may escape it by using a mixture of XML Escaped code and plain text in HTML.
<body>
<ul>
<li>& = &amp;</li>
<li>' = &apos;</li>
<li>" = &quot;</li>
<li>< = &lt;</li>
<li>> = &gt;</li>
</ul>
</body>