I've come into a situation where I require to have BBCode parsed, this
includes the standard tags supported by PEAR package HTML_BBCodePars er
and custom BBCode tags I've added myself.
My problem is this, I've discovered that when an value has a space
within the value the value is truncated at the first occurrence of the
space. This applies to a URL, image file names and any additional
attribute values (alt, style, etc.). This issue is present in the
stable release and latest release in CVS for HTML_BBCodePars er. Here
is some examples.
Before BBCode Parser
[url=http://www.somedomain. com/Foo World?str=1]Foo World
After BBCode Parser
<a href="http://www.somedomain. com/Foo">Foo World</a>
Before BBCode Parser
[img w=100 h=99 alt=Enthalpy Wheel]/images/Enthalpy Wheel.png[/img]
After BBCode Parser
<img src="/images/Enthalpy" width="100" height="99" alt="Enthalpy" /
Before BBCode Parser
[p style=foo bar]something here[/p]
After BBCode Parser
<p style="foo">som ething here</p>
Before BBCode Parser
[div style=color:blu e; font-size: 1em;]something here[/div]
After BBCode Parser
<div style="color:bl ue;">something here</div>
This problem appears to exist across the board even without additional
BBCode tags or additional attributes.
Any suggestions or directions on how I can resolve this problem would
be much appreciated.
includes the standard tags supported by PEAR package HTML_BBCodePars er
and custom BBCode tags I've added myself.
My problem is this, I've discovered that when an value has a space
within the value the value is truncated at the first occurrence of the
space. This applies to a URL, image file names and any additional
attribute values (alt, style, etc.). This issue is present in the
stable release and latest release in CVS for HTML_BBCodePars er. Here
is some examples.
Before BBCode Parser
[url=http://www.somedomain. com/Foo World?str=1]Foo World
After BBCode Parser
<a href="http://www.somedomain. com/Foo">Foo World</a>
Before BBCode Parser
[img w=100 h=99 alt=Enthalpy Wheel]/images/Enthalpy Wheel.png[/img]
After BBCode Parser
<img src="/images/Enthalpy" width="100" height="99" alt="Enthalpy" /
>
[p style=foo bar]something here[/p]
After BBCode Parser
<p style="foo">som ething here</p>
Before BBCode Parser
[div style=color:blu e; font-size: 1em;]something here[/div]
After BBCode Parser
<div style="color:bl ue;">something here</div>
This problem appears to exist across the board even without additional
BBCode tags or additional attributes.
Any suggestions or directions on how I can resolve this problem would
be much appreciated.
Comment