Skip to content

Commit

Permalink
using anchor text as snippet.
Browse files Browse the repository at this point in the history
  • Loading branch information
padams committed Jan 24, 2022
1 parent cb9c425 commit 0efc4a9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions owa_httpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,14 @@ function extract_anchor_snippet($link){

// Search the page for a specific anchor
$this->extract_anchor($link);

if (array_key_exists( 'anchor_text', $this->anchor_info ) ) {

return $this->anchor_info['anchor_text'];
} else {

return;
}

if(!empty($this->anchor_info['anchor_tag'])) {

Expand Down

0 comments on commit 0efc4a9

Please sign in to comment.