Remove blog title with apostrophe from related posts

14 views
Skip to first unread message

leniel

unread,
Sep 23, 2011, 1:43:27 AM9/23/11
to Blogger Related Posts Service
Hi,

I tried using as suggested:

remove_string_regexp: new RegExp('^(Jesus\'s blog): ')

or

remove_string_regexp: new RegExp("^(Jesus's blog): ")

but I couldn't get the desired output, that is, only the post title.
The blog title is still present.

Site URL: http://jes4us.blogspot.com/2011/09/viva-em-abundancia.html

Can you help me?

Thanks,

Leniel

Yu-Jie Lin

unread,
Sep 23, 2011, 2:06:28 AM9/23/11
to blogger-relate...@googlegroups.com
It should be working for those two you have tried, even with just

remove_string_regexp: /^.*?: /,

I wonder if you miss the comma or put the incorrect comma.

So, please include the code in your blog, so I can check.

> --
> You received this message because you are subscribed to the Google Groups "Blogger Related Posts Service" group.
> To post to this group, send email to blogger-relate...@googlegroups.com.
> To unsubscribe from this group, send email to blogger-related-post...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/blogger-related-posts-service?hl=en.
>
>

leniel

unread,
Sep 23, 2011, 10:30:14 AM9/23/11
to Blogger Related Posts Service
Yu-Jie Lin,

Thanks for the answer.

I added the code. Check this page's source code:
http://jes4us.blogspot.com/2011/09/viva-em-abundancia.html

It still shows the blog Title.

Thanks!

Yu-Jie Lin

unread,
Sep 23, 2011, 1:41:31 PM9/23/11
to blogger-relate...@googlegroups.com
I found the problem, please change regexp to

new RegExp('^(Jesus's blog): '

The apostrophe is HTML escape'd. Heading to update doc...

Yu-Jie Lin

unread,
Sep 23, 2011, 1:42:16 PM9/23/11
to blogger-relate...@googlegroups.com
Note, using

remove_string_regexp: /^.*?: /,

Should be more efficient.

leniel

unread,
Sep 23, 2011, 5:21:15 PM9/23/11
to Blogger Related Posts Service
I tried the first one and it did not work. Then I tried this one:
remove_string_regexp: /^.*?: /, and it did work! :)

Thanks again for your answers! :D
Reply all
Reply to author
Forward
0 new messages