Compatibility of custom HTML tags

G

Gene Wirchenko

On Fri, 7 Sep 2012 15:58:26 +0000 (UTC), Doug Miller

[snip]
If you are accepting user input and redisplaying it on your page
without editing or validating it in any way, you have FAR larger
problems than invalid HTML.

Valid HTML.
For example, what would stop me from submitting this user content?

I had to try...

No such site.

No such site, but the .com is taken.
Suggest you post in alt.php and/or comp.lang.php to learn
about proper editing and validation of user input, BEFORE you go
any farther with this project.

And even with that, there can be issues.

Sincerely,

Gene Wirchenko
 
J

jwcarlton

So what stops me from including this content?

<img src="http://www.pornographic_website.xxx/some_disgusting_photo.png">


I appreciate the concern that you guys have, but as I mentioned before, I have a rather lengthy program that I wrote to process and validate everything. It's not relevant to HTML or this thread, though, so I didn't think it was worth mentioning.

But for your reference, I automatically remove images that link to domains other than mine. That's why I allow the <img> tag, but earlier in the script I test it to make sure it's acceptable.

While they could realistically link to the image like so:

<a href="http://www.pornographic_website.xxx/some_disgusting_photo.png">
http://www.pornographic_website.xxx/some_disgusting_photo.png
</a>

(with the <a href...> tag generated via my script), I have filters in placeto prevent new or unregistered users from creating links to external websites. After they are registered for 24 hours, they can create a link like that, at which point it's up to another user to report it, and a moderator toremove it. And of course, repeated violations result in a suspended account.

But again, this really has nothing to do with the topic.
 
E

Edward A. Falk

I appreciate the concern that you guys have, but as I mentioned before, I have a rather
lengthy program that I wrote to process and validate everything. It's not relevant to
HTML or this thread, though, so I didn't think it was worth mentioning.

OK, just teach your validator to not allow <div> tags inside of <p> tags, and
other non-compliant combinations.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top