How can new lines of content in the publication be filtered?

How can the new lines of the content of the publication be filtered using:

Or, if it is better, eliminated at the time the publication is published or updated?

Any help would be greatly appreciated.