How can I automatically add a post with Latin characters?

htmlspecialchars() only converts &, “, ‘, < and >. To also convert (encode, really) accented characters, you need to use htmlentities(), and depending on the rest of your setup you may also have to specify which encoding to use. So: $content = htmlspecialchars( $text, ENT_QUOTES|ENT_SUBSTITUTE, ‘UTF-8’ ); (Substitute ‘ISO-8859-1’ for ‘UTF-8’ if necessary, though it … Read more

Rest API encoding of double quotes

I’ll show here an example of how you can convert the HTML to Plain Text in Swift 4. This example simulate that you’re receiving this: WordPress&#8216House –> WordPress’House Add this extension to convert your html code to a regular string: ` extension Data { var html2AttributedString: NSAttributedString? { do { return try NSAttributedString(data: self, options: … Read more