Mat Bowles (
matgb) wrote in
style_system2010-08-01 12:11 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[community profile]](https://www.dreamwidth.org/img/silk/identity/community.png)
Entry tags:
(solved) Stripping HTML from subjects for sharethis buttons
K, I'm stuck. I'm working on a set of ShareThis buttons for my layout and a few other people. It may even get submitted as a solution to the outstanding bug on it if I can really get it working, but it'll need a lot more bells and whistles.
However, while it works fine as is for me, it breaks quite horribly if someone has put HTML into the subject of the post. According to S2 and what I've read, there are three different ways to get a plaintext subject, exept...
I can't get any of them to work. I've tried get_plain_subject (), I've tried striphtml() and I've used variants on ehtml. You can see the buttons working fine on any of my entries or friends page, but as can be seen from this one it breaks with the html.
I think I'm basically missing the syntax for how to use each of the subjects, but I've tried so many variants of syntax I think I need someone to tell me what to do.
However, while it works fine as is for me, it breaks quite horribly if someone has put HTML into the subject of the post. According to S2 and what I've read, there are three different ways to get a plaintext subject, exept...
I can't get any of them to work. I've tried get_plain_subject (), I've tried striphtml() and I've used variants on ehtml. You can see the buttons working fine on any of my entries or friends page, but as can be seen from this one it breaks with the html.
I think I'm basically missing the syntax for how to use each of the subjects, but I've tried so many variants of syntax I think I need someone to tell me what to do.
no subject
I'll give it a go and let you know, they're almost finished at a basic level and I can always add more whsitles at a later date.
no subject