WordPress.org

Ready to get started?Download WordPress

Forums

"" doesn't work in html view on page (5 posts)

  1. 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.]

  2. richarduk
    Member
    Posted 2 years ago #

    It seems to strip out the --> and replace it with & #8211 ; (deliberately broken up)

  3. 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?

  4. 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.

  5. 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?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.