Forums

Problem with "lower than" char (7 posts)

  1. Diamant
    Member
    Posted 6 years ago #

    When I post a < in my comment (maybe in a post, too. I didn't try yet) the comment ends there and the rest will not be stored in database.

    example: I'm so angry! >.< Damn Internet Explorer!

    All I can see then is "I'm so angry! >."
    Need help to fix that.

  2. Mark (podz)
    Support Maven
    Posted 6 years ago #

    You need to encode it so that &lt; becomes < and &gt; is >

    If you use them a lot, why not make a Quicktag ?
    http://www.tamba2.org.uk/wordpress/quicktags/

    Using < is described there.

    --Bah.. can't get it to show right

  3. Diamant
    Member
    Posted 6 years ago #

    Thanks for your answer, but I don't need the < in my admin panel as a Quicktag... I need it in the posts and comments.

  4. Michael Bishop
    Forum Concierge
    Posted 6 years ago #

    That's what he's talking about. And depending on how often you use the greater than or less than symbols, you can create a quicktag using the link he provided so all you do is click a button when writing, and it inserts the correct code &lt;
    Also, check coffeetocode's plugins, he's got a preserve code plugin, may help with what you want also.
    http://www.coffee2code.com/wp-plugins/

  5. Mark (podz)
    Support Maven
    Posted 6 years ago #

    For comments, you could try altering the Comment Quicktags plugin: http://www.asymptomatic.net/wp-hacks

  6. TechGnome
    Moderator
    Posted 6 years ago #

    It's &lt; for the less than sign... and &gt; for the greater than sign. In fact the lt and gt come from LessThan and GreaterThan ... that's how I remember them.

    Tg

  7. Diamant
    Member
    Posted 6 years ago #

    Well I tested both Plugins, but they didn't work properly. I edited the functions-post.php by myself and fixed the problem...

Topic Closed

This topic has been closed to new replies.

About this Topic