How can I get the selected text of a current selected highlight annotation

Which product are you using?
PDF.js Express Plus

Hello Beatriz,

To get the selected text, you can use the textSelected API.

API: PDFJS Express WebViewer Class: DocumentViewer

Best Regards,
Darian Chen