Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const copy = (data: any) => {
const text = data.answer_text_list
.map((item: Array<any>) => item.map((i) => i.content).join('\n'))
.join('\n\n')
copyClick(text)
copyClick(removeFormRander(text))
} catch (e: any) {
copyClick(removeFormRander(data?.answer_text.trim()))
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code appears to have a logical mistake. In the copy function, it calls copyClick(text) instead of copyClick(removeFormRander(text)).

To ensure that form rendering is stripped from the copied string before copying, the correct line should be:

copyClick(removeFormRander(text));

This would prevent unwanted HTML content from being included in the copied output.

No further optimizations or issues were identified with the provided code snippet at this time. If you need additional functionality adjustments, feel free to ask!

Expand Down