mySQL 데이터베이스의 HTML 태그를 SEO 메타 설명의 일반 텍스트로 제거하려고합니다. 데이터베이스의 HTML은 다음과 같습니다SEO 용 PHP에서 태그를 공백으로 바꾸십시오. 메타 설명
내가 포맷은 다음 PHP를 사용하고<p>The Break-ezee is a vital piece of equipment for anyone when breaking horses - As used by Mary King.</p>
<p></p>
<p>The Break-ezee is an all in one progressive training product for use when breaking horses.</p>
가 :
<meta name="description" content="The Break-ezee is a vital piece of equipment for anyone when breaking horses - As used by Mary King.
The Break-ezee is an all in one progressi" />
:
$showseodesc = trim(strip_tags(substr($showseoproduct['text'],0,160)));
이이 사이트의 소스에서 다음을 보여줍니다
어쨌든 공백이 없도록 태그 (이 경우 <p>)를 바꿀 수 있습니까?
내가 이상적으로 같이하는 메타 설명을 찾고 있어요 :
<meta name="description" content="The Break-ezee is a vital piece of equipment for anyone when breaking horses - As used by Mary King. The Break-ezee is an all in one progressi" />
을 또한, 나는 구글은 메타 설명을위한 별도의 공간을 선택하지 않는 생각에 수정입니까?
많은 도움에 감사드립니다.