swift / 文字列置換
- <b>タグを抜く例
var title = newsDic["title"] as? String; title = title?.stringByReplacingOccurrencesOfString("<b>", withString: ""); title = title?.stringByReplacingOccurrencesOfString("</b>", withString: "");
var title = newsDic["title"] as? String; title = title?.stringByReplacingOccurrencesOfString("<b>", withString: ""); title = title?.stringByReplacingOccurrencesOfString("</b>", withString: "");