Tengo una descripción en mi sitio web y quiero hacer nuevas líneas en ella. ¿Puedo hacer esto? Si entonces por favor ayúdame
Mi código
<meta property="og:description" content="This is 1st line. This should be 2nd. And this should be 3rd line"/>Quiero que el resultado del contenido sea como
This is 1st line. This should be 2nd. And this should be 3rd linepor favor, ayúdame
las entidades de caracteres funcionan en atributos, así que esto podría funcionar:"
";
como eso:
<meta property="og:description" content=" This is 1st line. This should be 2nd. And this should be 3rd line"/> <meta property="og:description" content=" This is 1st line. This should be 2nd. And this should be 3rd line">En realidad no lo probé, pero ¿por qué no simplemente agregar "\n".
<meta property="og:description" content="This is 1st line.\n This should be 2nd.\n And this should be 3rd line"/>