tammyhart / Reusable-Custom-WordPress-Meta-Boxes

177 stars 97 forks source link

Prevent HTML tag strip #42

Closed SFPink closed 11 years ago

SFPink commented 11 years ago

Hello,

I know you have declared that you will stop supporting this.

However i thought i would try my luck and ask if there is a way to prevent HTML tags from being stripped from input boxes?

I understand the code, its the bits of the wordpress API that gets me.

Would i simply have to remove this:

sanitize_text_field from the sanitizer array? (Just noticed this is default so wont matter if i remove)

I'll just close this now found what i was looking for.

changed sanitize_text_field to wp_kses_post.