![]() |
Detect HTML
I made this quickly for my message system that used GUIs.
I'll probably eventually make it simply remove the HTML, but for now it's a way to tell if they inputted HTML. An example is if you have a GUI message system, and someone massed <img src="block.png"> for example. You could disable HTML, but then if you needed colors, etc, you couldn't use them. The way I used it was this: PHP Code:
Script for class functions_removehtml: PHP Code:
Feel free to leave feedback! Thanks, Chris Zakuto EDIT: Updated it to remove the HTML instead of just giving an error. It removes the < right before it, making it not work. There was also another error that I fixed. |
NPC Code:<<b>Avoided!<</b> Also, "spam"? span, perhaps. e: What is "hl"? |
Quote:
Looks like I made a typo. And an error. I'll fix those after school today and repost! Thank you for the feedback! |
Thanks! Needed this :)
|
Quote:
Also, I'm pretty sure this script has some big holes in it. I wrote it many years ago. |
hehe I noticed some errors, but I modified it ^^
Good idea with the '>'- I'll do that =D Thanks |
| All times are GMT +2. The time now is 10:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.