For a BuildingBlock that only contains text you can use the Value property - see
BuildingBlock.Value property (Word) | Microsoft Learn
Bear in mind that any formatting will be lost.
Use the corresponding custom gallery to hide the instructions from the user.