You're probably pressing shift when hitting the comma key and entering a less-than symbol accidentally or something. The site cuts anything after a less-than symbol off, as a safety measure.
@eyebrows I noticed it doing that when i was trying to make hearts on a comment I was posting (I know, I'm such a girl) - but just out of curiousity, why would that be considered a safety measure?
Web pages are built in a language called HTML. If you right click this page (not on an image or on a button, but just somewhere in empty space) and click "View Source", or View Page Source or similar, you can see what it looks like. You'll notice it's full of <stuff like="this">. Those are called HTML elements, or tags.
Now, if the site didn't strip those from comments, it may be possible for someone to insert some program code (in another language called JavaScript) into a comment, via a specific HTML tag, that'd execute in anyone's browser when they viewed that photo. Thus, by blocking out HTML tags entirely, you remove the risk of malicious code appearing on the site.
In discussion threads there's a looser security, where certain tags are allowed, as you can see if you hit "How can I format my reply?" below.
@pwallis But, you'm thinkin' "if these tags structures are stripped, how did @eyebrows manage to include one in his comment?" - well, imagine (this might all be a bit complex, but we'll see) you're writing an HTML document, with all your <tags and="such"> in it, but you wanted to literally include a less-than symbol, for making a <3, say. If you just straight entered the less-than, the web browser would think it was part of the HTML, and interpret it as a tag, and it wouldn't draw itself literally. It'd see it as part of the document structure.
So, there's another method for literally displaying characters used in the structure of HTML, using ampersands and semicolons, where in this case you put ampersand-l-t-semicolon (l-t standing for less than) and the browser knows you want it to display a less-than character. So & l t ; (with no spaces between) is how I got my < to display in here.
HTML is fun :P
-edit-
HOWEVER! Even the ampersand method doesn't work in photograph comments. :(
@eyebrows Thanks. I am very challenged when it comes to technology and I was sure it was something I was doing wrong. However, you did just make it work in your comment so.............?
@eyebrows good replies, thanks. do you think i should allow formatting on photo comments? i dont want it to get like flickr where ppl include their own photos in the comments of your photo tho, i think thats a bit wrong
@Scrivna It wouldn't hurt, but I don't think it'd add much either. For simplest you could use the same regexp/function you're using here but just exclude the <img> tag from it I guess?
@marilyn <3 I wanted to use it with posts to you but the doctor has convinced me it won't work anywhere except in discussion so thanks for the opportunity to try it out. <3 !!!
@Scrivna I think the comments are fine just the way they are. We have plenty of room to say what we want to, and while shortcuts are nice, they aren't necessary.
@scrivna When I started using this site back in January, I was testing to see if I could reference more than one photo (hosted elsewhere) each day in my album. I tried the html img tag in the photo description and the photo comments of my own photos but they were stripped away. It would be nice to reference external images to show others my extras, but I completely understand the usability and security issues that come with that. And even if you allowed only the owner of an album the option to use html on their own photo pages, you could end up getting something like MySpace. So instead, a link to a blog post works just fine. ;-)
Web pages are built in a language called HTML. If you right click this page (not on an image or on a button, but just somewhere in empty space) and click "View Source", or View Page Source or similar, you can see what it looks like. You'll notice it's full of <stuff like="this">. Those are called HTML elements, or tags.
Now, if the site didn't strip those from comments, it may be possible for someone to insert some program code (in another language called JavaScript) into a comment, via a specific HTML tag, that'd execute in anyone's browser when they viewed that photo. Thus, by blocking out HTML tags entirely, you remove the risk of malicious code appearing on the site.
In discussion threads there's a looser security, where certain tags are allowed, as you can see if you hit "How can I format my reply?" below.
So, there's another method for literally displaying characters used in the structure of HTML, using ampersands and semicolons, where in this case you put ampersand-l-t-semicolon (l-t standing for less than) and the browser knows you want it to display a less-than character. So & l t ; (with no spaces between) is how I got my < to display in here.
HTML is fun :P
-edit-
HOWEVER! Even the ampersand method doesn't work in photograph comments. :(