Escape html characters before markdown filter