Masking not working

how do i use dynamic text inside of a mask? if I put dynamic text in a masked layer, the text dissapears.