不能包括&lt;在<code> in Wordpress Post

时间:2018-01-27 04:56:50

标签: html wordpress

I'm trying to publish a post that has code blocks in it. At first the published post would just show 'Nothing is Found Here'. I debugged it by testing out parts one by one. I identified the culprit but I don't know how to go about it.

It's basically this particular combination:

blablabla <code>&lt;form&gt;</code> blablabla
// which should display like below
blablabla <form> blablabla

it seems like including the special characters inside the <code> makes it crash

anyone knows a solution?

1 个答案:

答案 0 :(得分:1)

请使用以下代码使其正常工作:

blablabla [code language="html"]<form>[/code] blablabla