question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search Disregard HTML in TD

See original GitHub issue

I have a column with HTML data and I would like the search functionality to ignore HTML values and just parse the ABCDE value within the hyperlink. Is that possible?

If I search for “AB” in this example it pulls both records due to matching the href vales as well.

<tr>
<td>
<a href="/X/XX?AB=123&CD=Index&groupid=fdadd7e9">ABCDE</a>
</td>
</tr>
<tr>
<td>
<a href="/X/XX?AB=321&CD=Index&groupid=fdadd7e9">12345</a>
</td>
</tr>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
wenzhixincommented, Mar 12, 2018

If you are using formatter to format the column, I think you can set searchFormatter to false to solve your problem(for example, search for github): http://jsfiddle.net/e3nk137y/22751/ http://jsfiddle.net/e3nk137y/22753/

0reactions
cgountaniscommented, Mar 12, 2018

I just moved the actions to the left most column (search disabled), to match the rest of the site, was a good work around.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to get content between <td></td> only if no nested tags ...
2 Answers 2 · This correctly picks desired td but returns the tag as well. Note that I cant replace tags for a...
Read more >
<td>: The Table Data Cell element - HTML - MDN Web Docs
The <td> HTML element defines a cell of a table that contains data. ... If align is not set to char , this...
Read more >
What happens when aria-label, aria-labelledby and aria ...
They are OK on div elements IF they have role=navigation , search , main , img. They are OK on a table element...
Read more >
Tables in HTML documents
11.1 Introduction to tables. The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other...
Read more >
strip_tags - Manual - PHP
HTML comments and PHP tags are also stripped. This is hardcoded and can not be changed with allowed_tags . Note: Self-closing XHTML tags...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found