extend example to support html