Archives July 29, 2022

GOLDEN TEMPLE
what is “esc_html”, “esc_html ()”, “esc_html__” and “esc_html__()” in wordpress or PHP ?

“esc_html”

Filters a string cleaned and escaped for output in HTML. Text passed to esc_html() is stripped of invalid or special characters before output.

esc_html ()

Escaping for HTML blocks.

esc_html__

Retrieve the translation of $text and escapes it for safe use in HTML output. If there is no translation, or the text domain isn’t loaded, the original text is escaped and returned.

esc_html__()

Retrieve the translation of $text and escapes it for safe use in HTML output. If there is no translation, or the text domain isn’t loaded, the original text is escaped and returned.

What is “wp-kses_post” in wordpress?

wp-kses_post will sanetize to post-content for allowed HTML Tags, for posting content

What is “esc_url” in WordPress?

esc_url will checking the url, and remove the many characters from the url