I want to use DOMDocument to parse sting came from Rich-Text-Editor, exactly what I need are:

1) Allow only (div, p, span, b, ul, ol, li, blockquotem br) tags, remove others tags with its content

**Edit:**
I'm using strip\_tags() for this

2) allow only these styles:

* style="font-weight:bold"
* style="font-style: italic"
* style="text-decoration: underline"

3) remove any attributes in the allowed tags like class, id ...etc except align attribute only

any ideas ?