Simplify asHtml parameters while still keeping backward-compatibility