bern0det90
Forum Replies Created
-
@tobiasbg I actually tried swapping single quotes for double quotes. Even though the use of single quotes is valid in HTML, browsers will tend to convert them into double quotes and replace any instance of double quotes inside of attributes using double quotes with a
"entity. Unfortunately, for my uses with this plugin, I’m limited to creating tables from content that is rendered on pages.- This reply was modified 2 years, 8 months ago by bern0det90.
Thanks for the reply @tobiasbg. Just discovered your plugin and am loving it so far.
So the issue is that the double quotes from the
rel="noopener"attribute is breaking my bootstrap popover markup.Here’s an example of what this markup looks like before I manually import it (either from an html file, url, or dumping code in). In the
data-contentattribute, the HTML markup set in there uses single quotes:<a role="button" data-toggle="popover" data-html="true" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href='website.com' target='_blank'>Link 1</a> <a href='website.com' target='_blank'>Link 2</a> <a href='website.com' target='_blank'>Link 3</a>">Trigger Popover</a>Now, when the table gets created, it generates the markup like this:
<a role="button" data-toggle="popover" data-html="true" data-content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. <a href='website.com' target='_blank'>Link 1</a> <a href='website.com' target='_blank' rel=" noopener"="">Link 2</a> <a href="website.com" target="_blank" rel="noopener">Link 3</a> ">Trigger Popoverbecause the
rel="noopener"that gets appended uses double quotes; it breaks the markup of popover, causing the content of whatever was indata-contentto actually display outside of the popover container.