use std::{fs, os::unix::fs::PermissionsExt};
pub fn is_executable(path: &str) -> bool {
if let Ok(meta) = fs::metadata(path) {
meta.permissions().mode() & 0o111 != 0
} else {
false
}
}
pub fn html_encode(html: &str) -> String {
html.replace('&', "&")
.replace('<', "<")
.replace('>', ">")
.replace('"', """)
.replace('\'', "'")
}