• Hello friends, I am developing a WordPress Theme.
    I allowed html tags (<br>, ) in a textarea in theme customizer with a ‘sanitize call back’.
    Now I want output in front end, My code will be:
    <?php echo get_theme_mod( 'my_teaxtarea' ) ;?>
    As WordPress Theme Development rules, it’s necessary to validate any text print.
    How will I validate.
    Because ‘esc_html’ or ‘esc-attr’ will not work.
    <?php echo esc_html( get_theme_mod( 'my_teaxtarea' )) ;?> …… not working.

    Thanks.
    Please explain in a little detail.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Validation of textarea which sanitize with allowed html tags’ is closed to new replies.