marcovo wrote:Note [11 sept]: Development on version 2.0 has started, aimed at providing compatibility with phpBB 3.2 . Also see the
v2.0 github branch.
Hey, I took a quick look at that branch and noticed that the extension did some manipulation on the XML of a post. I would advise against replacing or testing for the presence of
<s>[hide]</s>
. Instead, test for the presence of an
HIDE
element (case-sensitive) using
DOMDocument::getElementsByTagName()
or via string manipulation if you're particularly confident in your abilities.
If you need to remove the content of all
[hide]
blocks from a post's XML, you can do it with
s9e\TextFormatter\Utils::removeTag($xml, 'HIDE')
. [
API]