Replace quote in string with html entity

Source: JamezJ.com