浏览代码

Strip tags from bio in embeds

Andy Neillans 1 年之前
父节点
当前提交
e9d9c4d8cc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/views/profile/show.blade.php

+ 1 - 1
resources/views/profile/show.blade.php

@@ -20,7 +20,7 @@
 
 
 @endsection
 @endsection
 
 
-@push('meta')<meta property="og:description" content="{{$profile->bio}}">
+@push('meta')<meta property="og:description" content="{{strip_tags($profile->bio)}}">
 	@if(false == $settings['crawlable'] || $profile->remote_url)
 	@if(false == $settings['crawlable'] || $profile->remote_url)
 	<meta name="robots" content="noindex, nofollow">
 	<meta name="robots" content="noindex, nofollow">
 	@else  <meta property="og:image" content="{{$profile->avatarUrl()}}">
 	@else  <meta property="og:image" content="{{$profile->avatarUrl()}}">