Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function esc_html( $html, $char_set = 'UTF-8' ) {
- if ( empty( $html ) ) {
- return '';
- }
- $html = (string) $html;
- $html = htmlspecialchars( $html, ENT_QUOTES, $char_set );
- return $html;
- }
- $test_string = 'Mujeres Jóvenes';
- var_dump( esc_html( $test_string ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement