Page 1 of 1
"<" is behaving weirdly in comments
Posted: Thu Nov 03, 2011 4:27 pm
by Mangek
Hello!
One of my guests left a heart in the comments for the post (a la "<3") which caused both the heart and everything that followed to not being shown. (I only found out about this after checking the comments in the admin-section, where the body of the comment was strangely fully shown).
I edited the comment, adding a space between the < and 3, and now it displays the full comment, but it looks a little wird. I tried swapping < to either < or < but that just causes it being displayed as text.
Any ideas what could be wrong?
Re: "<" is behaving weirdly in comments
Posted: Thu Nov 03, 2011 5:07 pm
by yellowled
Mangek wrote:Any ideas what could be wrong?
Unless you have the Textile or Markdown plugins activated for comments, I assume this is a result of s9y stripping HTML from comments by default. <3 is interpreted as HTML, < 3 is not(?). Or maybe you're using the plugin "Transforms HTML for comments"? It's still viewable in the admin backend since the stripping is only applied in the frontend, btw.
Anyway, this is not "wrong" as such but rather some kind of backfiring effect of the HTML stripping or interpretation. Not sure there's much you can do about it besides advocate your commentators not to use HTML special characters in comments. If your blog is in UTF-8, people could just use ♥ (if they can find it on the keyboard, for that matter)
YL
Re: "<" is behaving weirdly in comments
Posted: Thu Nov 03, 2011 6:33 pm
by Mangek
I tried both textile and Markdown, neither which made any difference. The "Transforms HTML.." did the trick however. Thanks YL!

Re: "<" is behaving weirdly in comments
Posted: Thu Nov 24, 2011 8:31 pm
by wismith
yellowled wrote:If your blog is in UTF-8, people could just use ♥ (if they can find it on the keyboard, for that matter)

Where can this symbol be found?
Re: "<" is behaving weirdly in comments
Posted: Thu Nov 24, 2011 9:01 pm
by Eni
wismith wrote:yellowled wrote:If your blog is in UTF-8, people could just use ♥ (if they can find it on the keyboard, for that matter)

Where can this symbol be found?
2764 is the hex. Either with Alt on Windows, or Shift+Ctrl+U on Linux, or bookmark a copy/paste list, oooor create yourself keyboard shortcuts for often used characters (◕‿‿◕)
http://fsymbols.com/keyboard/ <- about the keyboard input
http://www.fileformat.info/info/unicode ... /index.htm <- character info
✽ ✾ ✿ ❀ ❁ ❃ ❋
~eni
Re: "<" is behaving weirdly in comments
Posted: Thu Nov 24, 2011 9:05 pm
by Mangek
wismith wrote:Where can this symbol be found?
On the keyboard, no idea, but I did a quick search and found
a page with lots of symbols that you could copy & paste.