IMPORTXML 如何在没有换行符的情况下格式化导入的文本?

IMPORTXML How to format imported text without line breaks?

我在单元格中使用 IMPORTXML 公式来导入文本。网页上的文本没有定义换行符,源代码也没有,但我得到的导入有。我需要它是一个字符串,所以我可以正确地格式化它。

=importxml("https://elite.finviz.com/quote.ashx?t=AAPL&ty=l&ta=0&p=m", "//td[@class='fullview-profile']")

The text breaks that I get

我找到了解决办法。在 Clean()

中包装公式
=clean(importxml("https://finviz.com/quote.ashx?t=AAPL&ty=l&ta=0&p=m", "//td[@class='fullview-profile']"))