Support » Plugin: Allow PHP in Posts and Pages » echo -ing HTML tags results in … nothing
3 years, 11 months ago
echo “<div id=\”silverlightControlHost\”>”;
doesn’t print anything. echo “hello” works fine.
WordPress version 3.5.1 localized to Finnish.
Help me with my blasphemous attempt to embed a Silverlight -component to a page.
3 years, 9 months ago
Yes, thats right, same with me here WP 3.5.1.
print "[div class='top-box-left']";
prints xxxxxxxxxxxx but no div class …. and a lot of errors instead. Same with print “[div class=\”top-box-left\”]”;
This php plugin seems to be broken 🙁
2 years, 12 months ago
I got a solution!
it makes me crazy, but yes, it works.
we have to decode the unicode character…
< is \u003C
> is \u003E
so, nilfisk8, your code will be…
$left = json_decode('"\u003C"');
$right = json_decode('"\u003E"');
echo $left."div id='silverlightControlHost'".$right;