BBCode for html entities

Get help developing custom BBCodes or request one.
Post Reply
v12mike
Registered User
Posts: 232
Joined: Thu Jul 09, 2015 5:03 pm

BBCode for html entities

Post by v12mike » Wed Feb 07, 2018 6:29 am

In phpBB 3.1, it was possible to have a BBCode to allow insertion of html entities into a post: https://www.phpbb.com/customise/db/bbco ... ol_bbcode/

3.2.x does not support this BBCode, in the html string which should be (for example) '¥', the initial & is escaped, giving a string of '¥' which does not display the desired symbol.

The issue is in the BBCode plugin, not the text formatter, because html symbols do display correctly if manually inserted into a post message in the database.

I suspect that this behaviour is a side effect of the tighter security of the current version of the BBCode system, but I don't think that html entities themselves are much of a security risk, so it may just have been an oversight.

What are the chances of getting this facility back?

User avatar
3Di
Registered User
Posts: 12903
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: BBCode for html entities

Post by 3Di » Wed Feb 07, 2018 7:03 am

v12mike wrote:
Wed Feb 07, 2018 6:29 am
What are the chances of getting this facility back?
JoshyPHP wrote: @
For what I read here http://s9etextformatter.readthedocs.io/ ... _security/ regarding the Output escaping cannot be disabled paragraph, there could be a chance, see https://www.w3.org/TR/xslt/#disable-output-escaping .

But you know, I am just a noob about that, let's wait the Joshy's reply.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

User avatar
JoshyPHP
Code Contributor
Posts: 949
Joined: Mon Jul 11, 2011 12:28 am

Re: BBCode for html entities

Post by JoshyPHP » Wed Feb 07, 2018 10:25 am

I don't see disable-output-escaping being ever supported because it lives at the intersection of difficult to implement, risky and not very useful. The best way to support HTML entities would be either by allowing HTML entities via the HTMLEntities plugin or using an extension to modify the output of that BBCode.
I wrote the thing that does BBCodes in 3.2.

User avatar
ViolaF
Registered User
Posts: 1412
Joined: Tue Aug 14, 2012 11:52 pm

Re: BBCode for html entities

Post by ViolaF » Thu Feb 08, 2018 4:09 pm



¥



Just put the sign directly into the editor. this works..

Code: Select all

[b][size=150]元

¥

௹[/size][/b]
https://www.toptal.com/designers/htmlarrows/currency/

User avatar
ViolaF
Registered User
Posts: 1412
Joined: Tue Aug 14, 2012 11:52 pm

Re: BBCode for html entities

Post by ViolaF » Thu Feb 08, 2018 4:13 pm

same here

&hearts; < entity > dont work


< direct input > works

Code: Select all

&hearts;
	
[size=200]
♥[/size]

Post Reply

Return to “Custom BBCode Development and Requests”

Who is online

Users browsing this forum: No registered users and 10 guests