Added in a method to strip out javascript etc