parseContent Fix

Fixed a bug from parseContent method when used inside onPreview hook.

Added an optional argument val for some reason :)