html in post loses formatting when edited

Discussion forum for MOD Writers regarding MOD Development.
Registered User
Posts: 3
Joined: Mon Aug 23, 2010 7:33 pm

html in post loses formatting when edited

Post by Annwvyn »

I built a formatted post using html. However when the post is edited the html is lost. I noticed that bbcode is retained and is actually displayed in the edit screen whereas html is not. Is there a solution to this? There aren't enough bbcodes to use instead of html. Can html formatting be retained when being edited?

Registered User
Posts: 199
Joined: Wed Jul 21, 2010 11:49 am

Re: html in post loses formatting when edited

Post by Drummer »

You can add custom bbcodes according to your needs.
HTML entities are encoded for security reasons.

User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean

Re: html in post loses formatting when edited

Post by Erik Frèrejean »

phpBB doesn't allow the usage of raw HTML (this is a security precaution). When injecting the html straight into the DB its indeed rendered but as soon the post is edited through phpBB it will strip the HTML from the post.
You should create custom BBCodes for the HTML tags you are missing and use those in the posts.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)


Return to “[3.0.x] MOD Writers Discussion”