Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Function trimlink generate bugs on page

Asked Modified Viewed 1,640 times
R
Ramage
R
Ramage 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
asked
Junior Member

Hello
I use function trimlink in meta tags FB:
add_to_head meta property='og:description' content='".trimlink($data['news_extended'], 300)

and create slider, but I have bug, characters from html you see in the text.
I use TinyMCE.
example:
www.agrohodowca.pl/fb.png

www.agrohodowca.pl/slider.png


anyone can help me?
0 replies

2 posts

T
Talocha
T
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 10 threads in the forums
answered
Member

maybe it will work
add_to_head("<meta property='og:description' content='".trimlink(strip_tags($data['news_extended']), 300)."' />");
0 replies
R
Ramage
R
Ramage 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions
answered
Junior Member

Thanks! Works great!
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

T
T
  • Member, joined since
  • Contributed 90 posts on the community forums.
  • Started 10 threads in the forums
R
R
Ramage 10
  • Junior Member, joined since
  • Contributed 11 posts on the community forums.
  • Started 7 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet