Fixes error with inline html after close tag