Kitz Forum

Announcements => Site & Forum Discussion => Topic started by: Weaver on May 21, 2018, 01:32:32 PM

Title: HTML elements allowed
Post by: Weaver on May 21, 2018, 01:32:32 PM
Which html elements can be inserted into posts? Wondering what SMF allows.

This oddball nuisance person wondered about any way to insert html <lang></lang> tags, for things such as <lang="cy">yng Nghymraeg</cy>

I know you are busy enough without such nonsense. Best wishes and sincere thanks for your efforts on behalf of those of us who benefit all the time.
Title: Re: HTML elements allowed
Post by: kitz on May 21, 2018, 10:42:21 PM
I don't allow any html elements, this is for security reasons as a lot of forum exploits come via inserted html.

Any elements I do allow use BBC (Bulletin Board Code) which have square bracket tags [].   A lot of them are standard BBC code such as listed on this page (https://kitz.co.uk/tech/bbcode.htm).

There's lots of other bbcode I've added as mods such as
Code: [Select]
[youtube][/youtube]
[facebook][/facebook]
and they will all show above the post box ie (https://forum.kitz.co.uk/Themes/KitzBlue/images/bbc/youtube.gif)(https://forum.kitz.co.uk/Themes/KitzBlue/images/bbc/facebook.gif)
Title: Re: HTML elements allowed
Post by: kitz on May 21, 2018, 10:59:11 PM
Attached below list of BBCs in use (see image)

I've just noticed also that the forum software will allow certain html elements if I wish, but it parses them as php BBC.
Although I don't currently have this option turned on ... for security reasons the only html elements that SMF will parse are... 

Code: [Select]
    <b>, <u>, <i>, <s>, <em>, <ins>, <del>
    <a href="">
    <img src="" alt="" />
    <br />, <hr />
    <pre>, <blockquote>

anything else it will ignore.
Title: Re: HTML elements allowed
Post by: Weaver on May 21, 2018, 11:07:54 PM
That list is v useful, thanks!