Hi there !
I have an if statement where I want to expand a module (“#InterviewModule0101”) if my text string is equal to ,
“How to get a similar job”,
The challenge is that the said text string has a line break and is read as ,
“How to get a
similar job”
I explored various options including the contains and html functions without success so far…
This line of code that works for a text string without a line break would be,
if ( $item ( “#interview01ModuleTitle” ). text === “How to get a similar job” ){
$w ( “#InterviewModule0101” ). expand ();
}
My latest attempt to make it work with a line break is the following but I get a “react is not defined” error,
if ( $item ( “#interview01ModuleTitle” ). html === < p class = “p3”>< span > How to get a < br />
similar job </ span ></ p >){
$w ( “#InterviewModule0101” ). expand ();
}
Would you know how to read this “rich text” string? Any help would be greatly appreciated !