如何编码CSV格式的文件中的超链接? [英] How to encode a hyperlink in CSV formatted file?
问题描述
当我尝试在CSV文件单元格中对HTML锚点链接进行编码时,它会损坏并且无法通过Excel读取。
When I try to encode a HTML anchor link in CSV file cell it becomes corrupted and not readable by Excel.
是否有某种非HTML解决方案格式编码CSV文件单元格中的超链接?
Is there some sort of non-HTML solution or format to encode a hyperlink in CSV file cell?
推荐答案
CSV文件只是文本 -
A CSV file is simply text - it's up to the loading program how it chooses to interpret the text.
如果Excel在您提交时抱怨< a href = \ blah \>链接< / a>,另一个单元格
,然后尝试使用原始URL,您可能会发现Excel会自动将其转换为链接。
If Excel is complaining when you feed it "<a href=\"blah\">Link</a>", "another cell"
then try just having the raw URL and you might find Excel will automagically turn it into a link.
但是一般来说Excel不处理HTML,所以期望它从CSV文件呈现HTML是太多了。
But in general Excel doesn't process HTML, so expecting it render HTML from a CSV file is asking too much.
这篇关于如何编码CSV格式的文件中的超链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!