Simply use the hide tags. This can be done by typing [ hide ] [ /hide ] without the spaces between the [] and the characters. You'll then put whatever text you want hidden between the two tags!
Your end result should look like so:
Content locked
This content has been locked. Please login or register in order to unlock it.