adhdcelt
Member
Posted 2 years ago #
I'm working on content in a static page in HTML view.
I have text and an <a href> code at the end of the content within the <div> on the page.
The text sections rem out with <!-- -->, no problem; the <a href> stuff will not. It screws up the page and allows the sidebar to fall inline under the content section.
Can someone please tell me why <!-- --> will not rem out the <a href> stuff in the page content?
Thanks
[Please post code snippets between backticks or use the code button.]
richarduk
Member
Posted 2 years ago #
It seems to strip out the --> and replace it with & #8211 ; (deliberately broken up)
adhdcelt
Member
Posted 2 years ago #
Well, that's a new one on me.
Thanks, richard
I wonder why it does it when trying to rem out the a href code and not the text blocks?
Do you know any way to fix it?
richarduk
Member
Posted 2 years ago #
Nope.
I only noticed because I pasted it into a post out of curiosity and then viewed source. It obviously sees the - - > as dangerous, presumably as it can be used in php.
adhdcelt
Member
Posted 2 years ago #
Anyone else out there got any bright ideas on how to solve this problem of being able to "rem out" code in HTML view of a page?