# Rust Crate Improvements Needed
## HTML Tag Stripping in Scripture Readings
**Issue**: Scripture readings contain HTML tags that appear in the iOS UI.
**Solution**: Update the Rust crate to strip HTML tags from scripture_reading fields in the ClientBulletin model.
**Suggested Implementation**:
```rust
// In src/models/client_models.rs - ClientBulletin::from() implementation
impl From for ClientBulletin {
fn from(bulletin: Bulletin) -> Self {
Self {
// ... other fields
scripture_reading: strip_html_tags(&bulletin.scripture_reading),
// ... other fields
}
}
}
// Helper function to strip HTML tags
fn strip_html_tags(text: &str) -> String {
// Use a regex or HTML parsing library to remove HTML tags
// This could use the `html2text` crate that's already a dependency
html2text::from_read(text.as_bytes(), 80)
.replace('\n', " ")
.split_whitespace()
.collect::>()
.join(" ")
}
```
**Benefits**:
- Clean data for all client platforms
- Consistent text rendering
- Better performance (processed once on server)
- Easier maintenance
**Files to Update**:
- `src/models/client_models.rs`
- Possibly `src/models/bulletin.rs` if the cleaning should happen earlier
**Priority**: Medium - affects user experience but doesn't break functionality