Add function web html preview on text