Fixes bug when editing posts with HTML