helios-ag / FMBbCodeBundle

:capital_abcd: BBCode bundle for Symfony projects
Other
57 stars 35 forks source link

bbcode_clean escape all HTML #111

Closed tom10271 closed 9 years ago

tom10271 commented 9 years ago

{{ post.text | bbcode_filter('forum') | bbcode_clean | raw }}

It parse bbcode and clear other bbcode I don't want to support yet it returns plain HTML as text

helios-ag commented 9 years ago

I'm not sure that understand you, if i'm not right, correct me. So you want to strip bbcode, that not allowed in your configuration? Because this bundle based on decoda, i'm not sure that's possible.

alquerci commented 9 years ago

Hi @tom10271

It's possible to do what you want. Simply create a filter_set with escaping: false and use it for cleaning like bbcode_filter('forum'). It's not tested but it should do what you want.

helios-ag commented 9 years ago

closed due to inactivity