Fixed bug in ios not clearing textcontent