The input is html text.
You have to delete all the tags, but first:
1) Convert the , , , , into "line breaks" (\ n)
2) Convert , , to "italic" or "bold" (_text_) or (* text *)
3) The entities html & nbsp; & mdash; & aacute; and similar in character for whatsapp, if possible
4) Somehow maintain the links (which can be mailto, tel or http ...)
5) If it were possible to include images in some way
El input es un texto html. Hay que borrar todas las tags, pero antes:
1) Convertir los ,,,, en "line breaks" (\n)
2) Convertir ,, en "italic" o "bold" (_text_) o (*text*)
3) Las entidades html — á y similares en su carácter para whatsapp, si fuera posible
4) Mantener de alguna forma los links de (que pueden ser mailto, tel o http...)
5) Si fuera posible incluir imágenes de alguna manera