HTML Censor library allows your program to go through strings, allowing some tags, and disallowing others. Attributes too!
To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Wizkidd0123.HTMLCensor##version=5Emulator users, in the BYOND pager go to File | Open Location and enter this URL:
Copyright © 2020 BYOND Software. All rights reserved.