escape problem
-
hi.
Is it possible to generate HTML cod inside a variable and then echo it in WordPress,like this code:public function settings_inline_style_callback() { $temp0 = '<input type="radio" name="My_options[inline_style]" id="inline_style_'; $temp1 = '<label for="inline_style_'; $html = $temp0 . '0" value="0" ' . checked( $this->options['inline_style'] , '0', false ) . ' />'; $html .= $temp1 . '0">External CSS style</label><br />'; $html .= $temp0 . '1" value="1" ' . checked( $this->options['inline_style'], '1', false ) . ' />'; $html .= $temp1 . '1">Inline CSS style</label>'; echo $html; }
The WordPress plugin review team said the escape was not done properly.
I am new to WordPress. I do not understand the problem with this code.
How should I modify this code?Thank you very much for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘escape problem’ is closed to new replies.