How can I use HTML in product page meta text fields?

Yo Yo Yo, I’m enjoying the tool and have been fiddling.
It looks like a bug, But I got it figured :rocket:
First copy table to be pasted.
Paste in Metafields as multiline text, but on the view source code view.
Short video attached if my description is not quite clear

@aaron_ecomplete

This is the solution, thanks so much! I wonder why other people in the discussion, didn’t flag it.

Yes. It’s actually pretty simple in Dawn.

  1. Just find your “Namespace and key” (i.e. my_fields.assembly_manual) in your Metafield definition
  2. Place that into this code formula
{{ product.metafields.my_fields.assembly_manual.value }}

And then copy all this code and paste it into the Description field of your Block in the Customizer.

Hi MetafieldsGuru. Thank you for your solution. The HTML shows on the page but I was hoping to have it show in a collapsible tab instead of always displayed like it is with the custom liquid. Any suggestions? Thanks!

This works like a charm! Thank you!

I’m using a maestroo template.
in file “product-json” I’ve changed from this:

“content”: “

{{ product.metafields.my_fields.EXAMPLE | metafield_tag }}</p>”,

to this:

“content”: “

{{ product.metafields.custom.EXAMPLE.value }}</p>”,

(EXAMPLE is the name of your metafield)
Now I can display a table and html in general!
But it is not a prefect solution from a code point of view, because my

is included in a

now..
Please update this post if someone finds the solution! (I do not want to use an addition app to fix it)
Thank you!

The above solution works well, so if it is not clear:

  1. get your metafield full namespace and key

  1. then add “.value” at the end of it like so in my case:
product.metafields.my_fields.tab_content_2.value
  1. add the usual liquid brackets before and after:
{{ product.metafields.my_fields.tab_content_2.value }}
  1. copy the whole code line and paste it in your theme editor in lieu of the current metafield connector:

  1. save and check, it should work like it did on mine (Third party theme)

@Florian2 for president!

Thank you very much!

Hey have tried using this strip_html tag ??

https://shopify.github.io/liquid/filters/strip_html/

and now i am able to add html into my multi-line text meta-feilds column, Please try once

it worked for me, thanks

Finally someone with a solution. Thanks mate.

Amazing! Works!

thank you :slightly_smiling_face: seems that Dawn support them well now directly from the dynamic content menu as well

For whatever weird reason this did not work for me. When selecting from the list it would not accept HTML. I had to manually assign it as described above.

Weird, yes i still don’t know when it works or not :slightly_smiling_face: But glad the manual solution is working!

Quite Helpful, It worked.

Please mark this answer as PRIMARY!

I have solved it. You can follow this tutorial: