Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
How do you deal with quote marks (to indicate inches) in meta tags
I needed to add the following meta tag code to our templates...
<meta property="og:description" content="<%=getCurrentAttribute('item','storedescription)%>" />
It fails because most of our <storedescription> data contains quotes to indicate inches ...so it gets rendered like this...
<meta property="og:description" content="12"x12" Widget" />
All of the extra quotes make it bomb and show unwanted text in our web store.
I know I could find a workaround, but thought I'd take the shortcut in here and see if anyone already has a way of posting that replaces quotes with acceptable characters.
0