1

firstly sorry for my broken english.

before purify:

<img src="xxx.jpg"/>

after purify:

<img src="xxx.jpg" class="myclass" />

how can i do with html purifier?

Arlong
  • 312
  • 3
  • 14

1 Answers1

0

Mmm, why don't you just put user content in a div with id content and then use the CSS selector #content img?

Edward Z. Yang
  • 26,325
  • 16
  • 80
  • 110