property標籤的escape屬性

 

官網中property標籤的描述

 

Used to get the property of a value , which will default to the top of the stack if none is specified.

 

參數有三個default,escape,value,其中escape較難理解,官方解釋爲'Whether to escape HTML'

 

用例子解釋

 

譬如該property的value實際爲"<input type='button' value='testEscape' class='button' />",現在我在頁面上用escape=false的property標籤來輸出,最後的輸出在頁面上是一個按鈕。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章