6 月 252013
 

原文(source): 怠速放寬!逾30度、下雨 排班計程車不罰 – Yahoo!奇摩新聞

自由時報 – 2013年6月25日 上午6:18

〔自由時報記者林嘉琪/台北報導〕汽機車怠速超過三分鐘得挨罰,但民眾抱怨大熱天車內如烤箱卻得熄火、太不合理。環保署昨天公告放寬,只要當氣象預報高溫超過卅度,或是停車時遇到下雨,都可以排除。另排班候客計程車也從原本的前三輛,放寬到所有排班候客計程車都可排除,即日起實施。

Continue reading »

6 月 252013
 

原文(source): 超級水果香蕉 10個驚人的好處 – Yahoo!奇摩新聞

作者: 華人健康網 記者黃子倫/台北報導 | 華人健康網 – 2013年6月20日 上午9:42

香蕉口感佳、營養價值高瘋迷世界,連台灣女星大S、林志玲等都瘋香蕉減重,尤其台灣又是香蕉盛產國,更要多了解這個好處多多的超級水果,國外網站(livestrong)幫大家蒐羅了香蕉對健康、減重的10個好處。

Continue reading »

6 月 252013
 

原文(source): 腸胃太差 空腹飲食3食物藏地雷 – Yahoo!奇摩新聞

作者: 華人健康網 記者駱慧雯/台北報導 | 華人健康網 – 2013年6月24日 上午11:06

民以食為天,且各種食物都含有其營養素,但營養師提醒,腸胃不好或患有乳糖不耐症的民眾,應避免空腹食用咖啡、濃茶等含刺激性成分的飲品,且減少優酪乳、牛奶、番茄等食物,以免傷胃、損健康。

Continue reading »

6 月 252013
 

原文(source): htmlEntities for JavaScript | CSS-Tricks

htmlentities() is a PHP function which converts special characters (like <) into their escaped/encoded values (like &lt;). This allows you to show to display the string without the browser reading it as HTML.

JavaScript doesn’t have a native version of it. If you just need the very basics to so that the browser won’t interpret as HTML, this should work fine (via James Padolsey and I got a a similar idea from David Walsh).

function htmlEntities(str) {
    return String(str).replace(/&/g, '&').replace(//g, '>').replace(/"/g, '"');
}