我试图插入一些xml代码作为前端可见的代码片段,我如何esape pug解析xmp
标签下的内容并只显示show plain xml代码而不进行任何处理?
.backoffice__settings__yellow-bg.mt20
.xml-code
code
xmp
<?xml version=«1.0» encoding=«UTF-8» ?>
<OrdersList>
<SendOrder date=«1486019811» nomber=«63723» price_sum=«6940» weight_sum=«800»>
<UserInfo>
<family>Name</family>
<name> Name </name>
<patronymic> Name </patronymic>
<phone>79251111111</phone>
<email>some@gmail.com</email>
</UserInfo>
<Delivery>
<transport_companies>4</transport_companies>
<city_id>0a7e138b-7c55-4745-8a75-0441df4d3432</city_id>
<delivery_points_id>900305</delivery_points_id>
<price_delivery>400</price_delivery>
</Delivery>
<Commentary></Commentary>
<Items>
<Item article_product=«00122000» title=«Сноубордический рюкзак DAKINE HELI PRO 20L BOZEMAN» count=«1» price=«6940»/>
</Items>
</SendOrder>
</OrdersList>
视觉我试图实现
答案 0 :(得分:1)
在标记声明结束后添加句点将明确地嵌入子文本(不进行评估)。您想要在xmp
代码中添加句点。
.backoffice__settings__yellow-bg.mt20
.xml-code
code
xmp.
<?xml version=«1.0» encoding=«UTF-8» ?>
<OrdersList>
<SendOrder date=«1486019811» nomber=«63723» price_sum=«6940» weight_sum=«800»>
<UserInfo>
<family>name</family>
<name> name </name>
<patronymic> name </patronymic>
<phone>7925111111</phone>
<email>some@gmail.com</email>
</UserInfo>
<Delivery>
<transport_companies>4</transport_companies>
<city_id>0a7e138b-7c55-4745-8a75-0441df4d3432</city_id>
<delivery_points_id>900305</delivery_points_id>
<price_delivery>400</price_delivery>
</Delivery>
<Commentary></Commentary>
<Items>
<Item article_product=«00122000» title=«Сноубордический рюкзак DAKINE HELI PRO 20L BOZEMAN» count=«1» price=«6940»/>
</Items>
</SendOrder>
</OrdersList>