I am trying to select a small piece of text within a paragraph but I am unable to get it working.
I tried finding a tutorial online but nothing helped so far.
Hope someone can shine a light on what might be the solution.
<div class="priceindicator__container indicator-block"><svg class="priceindicator__svg"><use xlink:href="/images/svg/svg.svg#icon-daypart-ceremony"></use></svg> <div class="priceindicator__description"><h4> TITLE_HERE </h4> <p> TEXT_HERE <a class="text--s s-hide m-hide" tabindex="0"> <span id="tooltip-wrapper"> <svg id="1" class="preload-fas-fa-question-circle"><use xlink:href="#preload-fas-fa-question-circle"></use></svg> </span> </a> </p> </div> <!----></div>
I want the piece of text that is within the "p" inside of the div with the "priceindicator__description" class. Hope someone can explain to me how to do it.
c.OnHTML(".priceindicator__description p", func(e *colly.HTMLElement) {
//a := e.DOM.Find("p")
//fmt.Println(a.Html())
// fmt.Println(e.ChildText("p"))
})
This is what I tried in various ways, but nothing is giving me the text within the P tag.
