Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

html editor striping tags

Go to End

3 Posts   1225 Views


Community Member, 244 Posts

31 July 2011 at 12:52pm

Hi there,
is there a way to stop the html edittor removing tags it thinks aren't good?


<div style="border:2px #999 solid; padding:10px;">
<div id="fb-root">-</div>
<fb:like href="" send="true" width="450" show_faces="true" font="arial"></fb:like>

in this example the editor is removing the FB tag - which is facebooks tag...

also it removed empty divs, so I have to put a dash or something in there - is there a way for it not remove empty tags?



Community Member, 49 Posts

1 August 2011 at 11:41am

Edited: 01/08/2011 11:43am

I'm not sure if there is an easy way to do that... An alternative you could look into would be to create a shortcode

See this tutorial

Then you would just write something like this into the editor

[fblike url=] 


Community Member, 244 Posts

1 August 2011 at 4:33pm

for now, i did it by just adding the link into a text field in the CMS, and having the rest directly on the page. but the 'shortcode' method below could be more useful, as I could allow for a short code link on any page, and reuse the to style this are on lots of pages.