Controller evaluating BBCode

PennController for IBEX Forums Support Controller evaluating BBCode

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9764
    Sa_Semi
    Participant

    Hello,
    I’m working on a SPR study, where people are supposed to read sentences that are differently highlighted. Is it possible for the default Controller to evaluate BBCode tags?
    I do understand that the input is/are string/s, which is why something like:

    
        newController("DashedSentence", {s : ["This is a <b>test</b>.", "This <b>is</b> another."]})
            .print()
            .log()
            .wait()
            .remove()
    

    does not work. But any input on how I can make it work how I want to?

    #9768
    Jeremy
    Keymaster

    Hello,

    You would need to edit DashedSentence.js: replace all occurrences of .text with .html

    Jeremy

    #9772
    Sa_Semi
    Participant

    It works perfectly now and was an easier solution than I expected. Thank you very much, Jeremy!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.