mantisbt-plugins / bbcode

4 stars 7 forks source link

[code] style tag does not prevent HTML encoding of the code #4

Open disaster123 opened 11 years ago

disaster123 commented 11 years ago

Code in [code] tags should not be encoded or modified by mantis.

Right now it is still affected by the mantis core formatter plugin.

So i stoll see
and & tags in my code i do not want.

Kirill commented 11 years ago

You must set priority for bbcode plugin lower than mantisbt formating plugin

disaster123 commented 11 years ago

MantisBT Formatting 1.0a => has Prio 3 MantisBT BBCode 1.3.3 => has Prio 1

Input: [code]

22.10.2012 abc efg

(dpkg -l |egrep "^ii linux-header|^pi linux-header"|awk '{ print $2 }'|sort -V|head -n -1|xargs -n1 -i dpkg -P "{}")) (apt-get update; apt-get -y -f --force-yes dist-upgrade; apt-get autoclean) [/code]

Output is:


# 22.10.2012 abc efg
(dpkg -l |egrep "^ii linux-header|^pi linux-header"|awk '{ print $2 }'|sort -V|head -n -1|xargs -n1 -i dpkg -P "{}"))
(apt-get update; apt-get -y -f --force-yes dist-upgrade; apt-get autoclean)

So i still have
tags and " and stuff like that in it.

Kirill commented 11 years ago

Sorry. I understand what you mean. But this if you switch off bbcode and post (ex in comments) this code you'll see that " transform to &qoute This work plugin - MantisBT Formatting 1.0a.

disaster123 commented 11 years ago

I'm not sure what you mean. The problem is that "MantisBT Formatting" formats code in pre tags. But it should / must IGNORE code in

 tags. Or another way could be to htmldecode the part in your plugin.

jmleroux commented 10 years ago

Just test it and i think this issue can be closed.

ghost commented 9 years ago

I just tested this and I cannot get HTML code to show. Tried both combinations of priorities. Only have this plugin and MantisBT Formatting 1.0b.

I am trying with this:

<p>&nbsp;</p>

Why is this not built into MantisBT core somewhere already anyway?