             }
         }
         
-        newStr = newStr.replacingOccurrences(of: "\n", with: "<br>")
+        newStr = newStr.replacingOccurrences(of: "\n", with: "<br />")
         return newStr
     }
 }

    
    open class func wrapTextInHTML(text: String) -> String {
        
        let strippedString = text.replacingOccurrences(of: "<[^>]+>", with: "", options: .regularExpression, range: nil)
        
        let detector =  try! NSDataDetector(types: NSTextCheckingResult.CheckingType.link.rawValue)
        

        
        return output
    }
        
    open class func attributedTextForString(text: String) -> NSAttributedString {
        
        guard let htmlStringData = text.data(using: String.Encoding.utf8) else {
