I’m looking at programming up a plugin that’s a mixture of bbcode and syntax highlighting, and have been looking at how WordPress currently filters out HTML and other text. I’m actually shocked to see this, so I want to confirm: Is WordPress formatting text before it’s putting it into the database?
Also from what I can tell, it has different formatting rules for admins and regular users (e.g. some random joe commenting is limited on what HTML tags they can use, but I can use anything). Where in the source code is it making this distinction at?
- The topic ‘Does WordPress strip HTML before inserting text into the database?’ is closed to new replies.