묻고답하기

예를들어

 

<div class="colorscripter-code" style="color:#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto"><table class="colorscripter-code-table" style="margin:0; padding:0; border:none; background-color:#fafafa; border-radius:4px;" cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:6px; border-right:2px solid #e5e5e5"><div style="margin: 0px; padding: 0px; word-break: normal; text-align: right; color: rgb(102, 102, 102); line-height: 160%;"><div style="line-height:160%">1</div><div style="line-height:160%">2</div><div style="line-height:160%">3</div><div style="line-height:160%">4</div><div style="line-height:160%">5</div><div style="line-height:160%">6</div><div style="line-height:160%">7</div><div style="line-height:160%">8</div><div style="line-height:160%">9</div></div></td><td style="padding:6px 0"><div style="margin: 0px; padding: 0px; line-height: 160%;"><div style="padding:0 6px; white-space:pre; line-height:160%">{@</div><div style="padding:0 6px; white-space:pre; line-height:160%">    $oDocumentModel = &getModel('document');</div><div style="padding:0 6px; white-space:pre; line-height:160%">    $oDocument = $oDocumentModel->getDocument($item->get('document_srl'));</div><div style="padding:0 6px; white-space:pre; line-height:160%">    $category_info = $oDocumentModel->getCategory($oDocument->get('category_srl'));</div><div style="padding:0 6px; white-space:pre; line-height:160%">}    </div><div style="padding:0 6px; white-space:pre; line-height:160%"><span style="color:#999999"><!--@if($widget_info->show_category=='Y' && $item->get('category_srl') )--></span></div><div style="padding:0 6px; white-space:pre; line-height:160%">    <<span style="color:#ff3399">a</span> <span style="color:#0099cc">style</span>=<span style="color:#52be14">"color:{$category_info->color};"</span><span style="color:#0099cc"></span> <span style="color:#0099cc">href</span>=<span style="color:#52be14">"{getSiteUrl($item->domain,'','mid',$item->get('mid'),'category',$item->get('category_srl'))}"</span><span style="color:#0099cc"></span> <span style="color:#0099cc"></span></div><div style="padding:0 6px; white-space:pre; line-height:160%"><span style="color:#0099cc"></span>    <span style="color:#0099cc">target</span>=<span style="color:#52be14">"_blank"</span><span style="color:#0099cc">|cond</span>=<span style="color:#52be14">"$widget_info->new_window"</span><span style="color:#0099cc"></span>><<span style="color:#ff3399">strong</span> <span style="color:#0099cc">class</span>=<span style="color:#52be14">"category"</span><span style="color:#0099cc"></span>>{$item->getCategory()}</<span style="color:#ff3399">strong</span>></<span style="color:#ff3399">a</span>></div><div style="padding:0 6px; white-space:pre; line-height:160%"><span style="color:#999999"><!--@end--></span></div></div><div style="text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic"><a href="http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5; text-decoration:none">Colored by Color Scripter</a></div></td><td style="vertical-align:bottom; padding:0 2px 4px 0"><a href="http://colorscripter.com/info#e" target="_blank" style="text-decoration:none; color:white"><span style="font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);">cs</span></a></td></tr></tbody></table></div>

 

이 소스를 넣어서 

글쓰기를 하면 

 

<div class="colorscripter-code" style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=010101">#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto">#fafafa; border-radius:4px;" cellspacing="0" cellpadding="0"><table class="colorscripter-code-table" style="margin:0; padding:0; border:none; background-color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=fafafa"><tbody><tr><td style="padding:6px; border-right:2px solid <a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=e5e5e5">#e5e5e5"><div style="margin: 0px; padding: 0px; word-break: normal; text-align: right; color: rgb(102, 102, 102); line-height: 160%;"><div style="line-height:160%">1</div><div style="line-height:160%">2</div><div style="line-height:160%">3</div><div style="line-height:160%">4</div><div style="line-height:160%">5</div><div style="line-height:160%">6</div><div style="line-height:160%">7</div><div style="line-height:160%">8</div><div style="line-height:160%">9</div></div></td><td style="padding:6px 0"><div style="margin: 0px; padding: 0px; line-height: 160%;"><div style="padding:0 6px; white-space:pre; line-height:160%">{@</div><div style="padding:0 6px; white-space:pre; line-height:160%">    $oDocumentModel = &getModel('document');</div><div style="padding:0 6px; white-space:pre; line-height:160%">    $oDocument = $oDocumentModel->getDocument($item->get('document_srl'));</div><div style="padding:0 6px; white-space:pre; line-height:160%">    $category_info = $oDocumentModel->getCategory($oDocument->get('category_srl'));</div><div style="padding:0 6px; white-space:pre; line-height:160%">}    </div><div style="padding:0 6px; white-space:pre; line-height:160%"><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=999999">#999999"><!--@if($widget_info->show_category=='Y' && $item->get('category_srl') )--></span></div><div style="padding:0 6px; white-space:pre; line-height:160%">    <<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=ff3399">#ff3399">a</span> <span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc">style</span>=<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=52be14">#52be14">"color:{$category_info->color};"</span><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc"></span> <span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc">href</span>=<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=52be14">#52be14">"{getSiteUrl($item->domain,'','mid',$item->get('mid'),'category',$item->get('category_srl'))}"</span><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc"></span> <span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc"></span></div><div style="padding:0 6px; white-space:pre; line-height:160%"><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc"></span>    <span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc">target</span>=<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=52be14">#52be14">"_blank"</span><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc">|cond</span>=<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=52be14">#52be14">"$widget_info->new_window"</span><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc"></span>><<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=ff3399">#ff3399">strong</span> <span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc">class</span>=<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=52be14">#52be14">"category"</span><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=0099cc">#0099cc"></span>>{$item->getCategory()}</<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=ff3399">#ff3399">strong</span>></<span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=ff3399">#ff3399">a</span>></div><div style="padding:0 6px; white-space:pre; line-height:160%"><span style="color:<a class=" luatag"="" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=999999">#999999"><!--@end--></span></div></div><div style="text-align:right; margin-top:-13px; margin-right:5px; font-size:9px; font-style:italic"><a href="http://colorscripter.com/info<a class=" luatag"="">#e</a>" target="_blank" style="color:<a class="luatag" href="http://owner-king.xyz/?mid=tip&search_target=hashtag&search_keyword=e5e5e5">#e5e5e5</a>; text-decoration:none">Colored by Color Scripter</div></td><td style="vertical-align:bottom; padding:0 2px 4px 0"><a href="http://colorscripter.com/info<a class=" luatag"="">#e</a>" target="_blank" style="text-decoration:none; color:white"><span style="font-size: 9px; word-break: normal; border-radius: 10px; padding: 1px; background-color: rgb(229, 229, 229);">cs</span></td></tr></tbody></table></div>

 

이렇게 변하고

 

#010101; font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace !important; position:relative !important; overflow:auto">#fafafa; border-radius:4px;" cellspacing="0" cellpadding="0">

이부분이 그대로 본문에 출력이 됩니다. 마치 텍스트화 된거처럼

 

어떻게 오류를 잡아야할까요?
 

에디터, 게시판 스킨 다른걸로 교체해봐도 똑같네요..

태그 연관 글
  1. [2020/12/16] 묻고답하기 footer 하단에 고정하려면 어딜 수정해야 할까요? by 가입명
  2. [2017/10/25] 묻고답하기 메인페이지에서 통합검색 말고 게시판 검색하기 by 김태근 *4
  3. [2017/02/04] 묻고답하기 내용 직접 추가에서 html... by 그티 *1
  4. [2015/05/08] 묻고답하기 레이아웃 몸통 늘리기 좀 도와주세요 by 착한동구