Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Issue #9 #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixing Issue #9 #11

wants to merge 2 commits into from

Conversation

bman7777
Copy link

Resolving issue: #9

The solution was adding role="main" so that when the results are found, this code can run properly:

htmlToText : function(htmlString) {
var htmlElement = document.createElement('span');
htmlElement.innerHTML = htmlString;
$(htmlElement).find('.headerlink').remove();
docContent = $(htmlElement).find('[role=main]')[0];
return docContent.textContent || docContent.innerText;
},

brian.manson and others added 2 commits July 14, 2019 09:29
Adding main role so when search results are complete the results are …
@jensens
Copy link

jensens commented Jan 12, 2020

I can confirm this fixes the problem.

@maicodelphi
Copy link

@myyasuda could you merge this please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants