简体   繁体   中英

How to place this line > data-masonry='{"percentPosition": true }' in XSLT document withoout breaking it

I would like to use the Bootstrap Masonry described here https://getbootstrap.com/docs/5.0/examples/masonry/ in SobiPro with Joomla 4 Cassopedia Tempalte.

I need a div like this - <div class="row" data-masonry='{"percentPosition": true }'>

However, the above used in an XSLT document creates an error.

How can I include data-masonry='{"percentPosition": true }' in XSLT to make Masonry work?

thanks

OK this seems to work data-masonry="{percentPosition=true}"

Can anyone see a problem with the above?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM