Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のようなhtmlコンテンツを含むsmarty変数があります $html="<strong>Content</strong><br/>etc etc" 。私はそれをhtml形式で表示しようとしています。{$html} フォーマットなしでプレーンテキストのみが表示されるように 表示すると。私は次のように試します: {$html|unescape} しかし、タグは表示されますが適用されません。何か提案はありますか?
$html="<strong>Content</strong><br/>etc etc"
{$html}
{$html|unescape}
興味深いことに、ここでの回答はいずれも、CS-Cart 4.3.4 の Smarty 3.1.21 では機能しません。したがって、その状況で別の考えを追加するには、次のように文字列で を使用nofilterします。$html
nofilter
$html
{$html nofilter}