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.
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
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.
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/
For comments, you could try altering the Comment Quicktags plugin: http://www.asymptomatic.net/wp-hacks
It's < for the less than sign... and > for the greater than sign. In fact the lt and gt come from LessThan and GreaterThan ... that's how I remember them.
Tg
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...