Prevent nested <a> html tags when using nested img and url bbcode tags

Signed-off-by: James Almer <jamrial@gmail.com>
Allow embedded images to be collapsible

Signed-off-by: James Almer <jamrial@gmail.com>