Remove text with jQuery

后端 未结 5 887
生来不讨喜
生来不讨喜 2020-11-27 06:59

Is there a way to remove text that is not wrapped in any tag using jQuery

This is some text

This is \"unwrapped\" text //to be removed &
5条回答
  •  [愿得一人]
    2020-11-27 07:23

    fwiw..

    This is some text

    This is "unwrapped" text //to be removed some more text

    via CSS:

    .parent-element { font-size: 0px; }
    .parent-element p { font-size: 12px; }
    .parent-element span { font-size: 14px; }
    

提交回复
热议问题