How Can We Help?
< Back
You are here:
Print

esc_attr()

escape special characters that could break the rendered html

$vue_atts = esc_attr( json_encode( [
‘id’ => $id,
‘question’ => $atts[‘question’],
‘answers’ => $answers,
] ) );

Table of Contents