Skip to content

Commit

Permalink
Fix empty tag selector.
Browse files Browse the repository at this point in the history
  • Loading branch information
teonator committed Apr 22, 2024
1 parent bfd09d9 commit 1590918
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/HTMLImportService.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ component {
required string elementHtml
, required string tagSelector
) {
if ( $helpers.isEmptyString( arguments.tagSelector ) ) {
return false;
}

var element = variables._jsoup.parse( arguments.elementHtml );
var selectedElement = element.select( arguments.tagSelector );

Expand Down

0 comments on commit 1590918

Please sign in to comment.