KnugiHK / WhatsApp-Chat-Exporter

A customizable Android and iOS/iPadOS WhatsApp database parser that will give you the history of your WhatsApp conversations in HTML and JSON. Android Backup Crypt12, Crypt14, Crypt15, and new schema supported.
https://wts.knugi.dev/
MIT License
517 stars 76 forks source link

Re-using already existing DOMs for reply feature. #57

Closed duracotton closed 11 months ago

duracotton commented 11 months ago

Hi there, currently the output html is already supporting direct links to a cited message. I'd like to suggest the feature to also show the cited message itself as we know it from Whatsapp. Is there any html support for re-using/displaying already existing DOM element (the original / cited message) instead of having to creating a copy of the message's value and icnreasing the html's file size? Is "href" doing the job?

KnugiHK commented 11 months ago

Are you working on iOS? The quotation feature is implemented already in Android and is planned for iOS.

As for reusing DOM, I will see if it is feasible.

duracotton commented 11 months ago

Yes, I used the tool to export chats from an iOS whatsapp backup. That's nice to hear :)

KnugiHK commented 11 months ago

Meanwhile, you can use --size to prevent the HTML file size from becoming too large.

KnugiHK commented 11 months ago

The only way to reuse DOMs I know is through Javascript. However, I want to avoid adding Javascript to the template. Hence, it may not be feasible under this circumstance. If anyone knows how to do it without Javascript, comments are welcome.

KnugiHK commented 11 months ago

Moving the discussion of quotation to #28.