#![expect(clippy::todo, reason = "skeleton: #6835")]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EntityContext {
Text,
Attribute,
}
#[inline]
pub fn needs_decoding(bytes: &[u8]) -> bool {
bytes.contains(&b'&')
}
pub fn decode_one(_input: &[u8], _context: EntityContext) -> Option<(char, usize)> {
todo!("#6835: move entity decoding into vize_l1::markup::entity")
}
#[cfg(test)]
mod tests {
use super::needs_decoding;
#[test]
fn only_ampersands_need_decoding() {
assert!(!needs_decoding(b"a || b"));
assert!(needs_decoding(b"a && b"));
}
}