SOLVED: HTML tags in post title

Don’t really sure if that’s a bug. On my site some articles (probably the ones which were originally copied with this format) have the HTML tag on the post title. Tried with another site (both have Bricks 1.4 beta installed) but this is not happening, even if I copy and paste the title already with the bold format from (for example) word. When I go and publish the link on (for example) facebook, those tags are appearing in the preview, making it hard to read. Not sure also if this is a problem related with Bricks or not. Maybe some of you may help. Here is the link to the page:

From the source code you can see the strong tags on the title

UPDATE: Seems like it’s happening also here in the blog! The message above me has some parts in “strong”. It’s almost like the one box that the forum is loading is also loading the “strong” tags and putting them as html in the page (facebook, instead, is just showing them in the title, without loading the tags in the html page

Hi Giovanni,
I am not sure if I understand your problem correctly. Can you please provide a short screencast where you show and explain in parallel what you are doing and what the problem is (in Bricks and the forum)?

Best regards,
timmse

Sorry @timmse,
the generated HTML tags seems to be a problem when pasting from a specific formatted text from LibreOffice. Nothing to do with Bricks. However I need some help with something related to this. Of course you can simply delete the tags and solve the problem on the root, but I want to report this issue since someone can be using the HTML tags in the title. I noticed a difference between how Bricks and other themes render the preview of the article in a “lightbox”. Look at these two examples:

As you can see, it differs from the link I sent in the other message, because the <strong> tags are not appearing in the message (you can see that the message above is half bolded, because the strong tags are loading on the page). This is more clear if I show you the box that Facebook creates. I’m gonna attach some screenshots. Seems like the other themes are stripping out the HTML tags from the output when pasting the link in some place that creates a “lightbox” (like FB or this forum).

This one above is the box of Facebook, generated from a link of a website that does NOT use Bricks. I just added in the post title the <strong> tags, as you can see from the screenshot below, but you can notice that the tags are not loaded in the preview, and everything is fine.

Notice, on the other hand, what happens when I do the same but with a link of a website built with Bricks.

Ignore the fact that the word “Gorillas” is incapsulated with a different set of HTML strong tags, but the point is that the tags are appearing in the preview, where in some other themes the tags are shown in the source code, but removed from the preview in the lightbox.
Thanks for your help

Hi Giovanni,
I think now I understand :smiley:

The value of a meta tag is text. It doesn’t matter if it’s a description meta tag or an open graph meta tag. Accordingly, HTML tags are interpreted as text and should be avoided because they have no effect, as far as I can see.

It may be that SEO plugins or even other themes have a function built in that removes these HTML tags, but this is not necessary as long as you follow the rules :wink: And the rule is: use Text instead of HTML.

Best regards,
timmse

1 Like