首頁 › [Drupal API] check_plain
[Drupal API] check_plain
簡介
http://api.drupal.org/api/function/check_plain/6
這會把東西純文字化。
範例
在設計模板的時候,可以試著這樣用:
<?php print $node->content['fivestar_widget']['#value']; ?>
會顯示正常的東西

如果這樣用:
<?php print check_plain($node->content['fivestar_widget']['#value']); ?>
會顯示完整的HTML

在設計模板的時候,可以先check_plain,看看這個顯示物件用了哪些ID和class,再來對照著寫CSS,就很方便囉!
- 人氣(3974)
Recent Comments
熱門內容
- Drupal | 用hook_menu_alter來修改tab項目 (192,708)
- 第一次玩弄Drupal就不上手 (183,799)
- 六個網站測速工具 (103,107)
- Drupal 的 Eye Candy? (71,120)
- Introduction to Drupal 簡報分享 (35,917)
找我聊聊
敲我MSN吧!
若我MSN下班,搞不好在這
或是在這













回應
I tughoht I'd have to read a book for a discovery like this!
zlAI8T fecrvhnsaafy
auto insurance quotes gaqi mobile home insurance 43400
low cost life insurance qesi state auto insurance %D home insurance ukjib
home insurance quotes woetg health insurance rates 650218
viagra ydgpaj tramadol online in florida 22114 cheapest cialis drrct
low car insurance 8(( health insurance :-)) auto insurance rates ddr auto insurance quotes =]]]
levitra 968329 compare cialis levitra viagra 486216 viagra 146965
free car insurance quotes %-(( car insurance quotes spo car insurance 6212
ordering cialis online 66450 levitra 460872 cheapest viagra pnv
發表新回應