You'll be adding your own edml file to do the translation.
You should just use the ones in that folder as an example. Without
testing the code it, my guess is it should look something like:
<participant name="transDynDataMyFormat">
<translator priority=400>
<searchPatterns>
<searchPattern><![CDATA[echo]]></searchPattern>
<searchPattern><![CDATA[addslashes]]></searchPattern>
<searchPattern
paramNames="innerArg"><![CDATA[/\s*php\s*echo\s*addslashes\(htmlentities\(([^\r\n]*)\)\);?\s*/i]]></searchPattern>
</searchPatterns>
<translations>
<translation whereToSearch="directive"
translationType="dynamic data">
<openTag>MM_DYNAMIC_CONTENT</openTag>
<display><![CDATA[{@@innerArg@@}]]></display>
<closeTag>MM_DYNAMIC_CONTENT</closeTag>
</translation>
<translation whereToSearch="tag+INPUT"
limitSearch="attribute+VALUE" translationType="dynamic data">
<attributes>
<attribute><![CDATA[mmTranslatedValueDynValue="VALUE={@@rinnerArg@@}"]]></attribute>
</attributes>
</translation>
</translations>
</translator>
</participant>
I think the only tricky part is the paramNames on the search
pattern just name the paren() matches from the regex. You'll see I
added an extra () instead the call the htmlentities which tells the
regex whatever is found in this section and name it innnerArg,
which gets used below in the output.