Warning, /pim/akonadi-search/agent/rs/htmlparser/src/lib.rs is written in an unsupported language. File is not indexed.
0001 // SPDX-FileCopyrightText: 2020 Carl Schwan <carlschwan@kde.org> 0002 // 0003 // SPDX-License-Identifier: LGPL-2.0-or-later 0004 0005 extern crate html2text; 0006 0007 use html2text::from_read; 0008 0009 pub fn convert_to_text(html: String) -> String { 0010 from_read(html.as_bytes(), html.len()) 0011 } 0012 0013 #[cxx::bridge] 0014 mod ffi { 0015 extern "Rust" { 0016 fn convert_to_text(html: String) -> String; 0017 } 0018 } 0019