How to put the text of an article of a URL in a variable?

Yeah, it’s not going to produce an error. The OP would be disappointed though if they intend to preserve some formatting of the article using getRichTextOf().