Topic: How to preserve only selected definitions in style attribute
Topic How to allow attribute style="text-align: center" (http://www.bioinformatics.org/phplabware/forum/viewtopic.php?id=329) is closed, but I have question to solution.
I need to preserve only "text-align: center" in style attribute of paragraph. So I use parameter
$spec = 'p=style(match=%"text-align:\s+center;?"%)';
When in style attribute is more definitions, they are not removed, like in example
<p style="text-align: center; color:red">Center aligned paragraph</p>
"color:red" isn't pushed out. I don't know how to preserve only "text-align: center".