カテゴリの説明に改行を入れたいのだ。

mt:CategoryDescription内に<br/>入れれば良いじゃんって普通に考えていた。
でもmt:CategoryDescription内に普通に改行を入れても無視される。。。。

 

ちなみにブログ全体の概要説明文は普通に<br />入れて
<$MTBlogDescription$>一発でOK。
改行入れたくない時は
"<$MTBlogDescription remove_html="1"$>"
で<br />抜きHtmlが生成される。コッチは実に簡単。

できない

<$mt:CategoryDescription>
<$MtCategoryDescription>
<br />が反映されない。。。改行できない。。。

<$mt:CategoryDescription remove_html="0"$>
<$mt:CategoryDescription remove_html="1"$>
<$MtCategoryDescription remove_html="0"$>
<$MtCategoryDescription remove_html="1"$>
あれ・・・?
ドレを試しても
<br />が反映されない。改行できないよ?

<$mt:CategoryDescription convert_breaks="0"$>
<$mt:CategoryDescription convert_breaks="1"$>
<$MtCategoryDescription convert_breaks="0"$>
<$MtCategoryDescription convert_breaks="1"$>
<br />が反映されない。。。改行できない。。。

<$mt:CategoryDescription encode_html="0"$>
<$mt:CategoryDescription encode_html="1"$>
<$MtCategoryDescription encode_html="0"$>
<$MtCategoryDescription encode_html="1"$>
<br />が反映されない。。。改行できない。。。

<$mt:CategoryDescription decode_html="1"$>
同じように4パターン実行
同じく<br />は反映されない。。。

もしやと思い$を抜いててみる
<mt:CategoryDescription remove_html="0" encode_html="0">
<mt:CategoryDescription remove_html="0" encode_html="1">
<Mt:CategoryDescription remove_html="0" encode_html="0">
<MtCategoryDescription remove_html="0" encode_html="1">

ぬぉぉぉー!できねーーー!できねーーー!

ウチだけ?ねぇウチだけ?('Α`)

できた

「<br />」を「&lt;br /&gt;」と書く。
<$MTCategoryDescription decode_html="1"$>
を使う。
。。。。できた。。。。
kirakira spiral |
▲ここ読むまでまさかこんな面倒な事しないとダメとは思わなかった。

こんな事で検索しまくるとは思わなかった。ありがとう。

<$MTBlogDescription$>と<$MtCategoryDescription&>で何故こんなに実装が違うのかと。
MTに閉口する事は非常に珍しいけど、今回はキーボード叩き割りそうになった(^_^;