2017-07-10 10 views
0

を変換し、私はそれがひどく

<li><a href="<%#ConfigurationManager.AppSettings["Path"].ToString()%>Default">Home</a></li> 

としてCKEditorバージョンでHTMLを入れているが、それは私が何をすべきか

<li><a a="" href="&lt;%#ConfigurationManager.AppSettings["><i class="fa fa-angle-right"></i></a></li> 

、のようなものに変換しますか?

+0

あなたはそれによって何を意味するかを説明することができます?あなたはそれをどのファイルに入れていますか? – mjwills

+0

私はckeditorがjavascriptリッチテキストエディタだと思っていました。それはあなたのテキストをエスケープしているようです。しかし、なぜasp.netマークアップを作成するためにこれを使用していますか? –

答えて

0

以下の置き換え/追加config.jsのとCKEditorバージョンのconfigセクション内を検索します。

//Whether to escape HTML when the editor updates the original input element. 
config.htmlEncodeOutput = false; 

//Whether to use HTML entities in the editor output. 
config.entities = false; 

//Whether to escape basic HTML entities in the document 
config.basicEntities = false; 

出典:あなたは `ckeditor`でHTMLを置くと言うときCheck Docs

関連する問題