I have noticed on system wide issue that all formatting is lost on messages (Discussions), imported reviewers forms , emails etc, all formatting I have send or done are lost even new lines are removed, the result is this:
Can someone recommend me how to fix it as it is quite an issue? Especially when reviewers answers are imported and entries are mixed in one paragraph. And with “Add discussions” I have specifically bolded some parts and paragraphs and this is also lost after it is sent).
It could be that this is not related, but check your config.inc.php settings for: allowed_html = "a[href|target|title],em,strong,cite,code,ul,ol,li[class],dl,dt,dd,b,i,u,img[src|alt],sup,sub,br,p"
Do you have that or this: allowed_html = "<a href|target> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img src|alt> <sup> <sub> <br> <p>"
; tags for fields that permit restricted HTML.
; For PHP 5.0.5 and greater, allowed attributes must be specified individually
; e.g. <img src|alt> to allow "src" and "alt" attributes. Unspecified
; attributes will be stripped. For PHP below 5.0.5 attributes may not be
; specified in this way.
allowed_html = "<a href|target> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <b> <i> <u> <img src|alt> <sup> <sub> <br> <p>"
I guess so. I actually have to find out as well when exactly should that setting be changed, before upgrading from 2.0 to 3.0 or right after that? @asmecher?
That filter is applied before data is displayed, not when data is saved to the database, so the time of changing the setting isn’t important. Either way is fine.
Regards,
Alec Smecher
Public Knowledge Project Team