You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TextileRestricted is generating invalid HTML markup on following:
$textile = new Parser();
echo $textile->textileRestricted('some text "link something(sdfsdf)":http://some.url');
Result is:
<p>some text <atitle="sdfsdf" nofollow""="" rel=" rel=" href="http://some.url">link something</a></p>
The text was updated successfully, but these errors were encountered:
@xorock, could you try changing this line in prepare() from...
$this->rel = ($rel) ? ' rel="'.$rel.'"' : '';
...to...
$this->rel = $rel;
and let me know if that fixes the rel/nofollow problem with links (probably not a complete fix as I'll need to fix it on linked images too if this is what I suspect it is.) Thank you.
Thank You Netcarver for Your interest. After this quick fix markup is displayed correctly.
<p>some text <atitle="sdfsdf" rel="nofollow" href="http://some.url">link something</a></p>
BTW. There's a minor bug in docs, "Manual install section". Tag extend DataBag so it must be included last.
include 'Parser.php';
include 'DataBag.php';
include 'Tag.php';
TextileRestricted is generating invalid HTML markup on following:
$textile = new Parser();
echo $textile->textileRestricted('some text "link something(sdfsdf)":http://some.url');
Result is:
The text was updated successfully, but these errors were encountered: