<img> and <a> tags treatment