From eaaa08a6b1f05b57aa6daeba2b75324d89035f8d Mon Sep 17 00:00:00 2001 From: Krystian Sienkiewicz Date: Wed, 8 Jul 2026 17:39:49 +0200 Subject: [PATCH] fix(ios): convert img attributes to int --- ios/htmlParser/HtmlParser.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ios/htmlParser/HtmlParser.mm b/ios/htmlParser/HtmlParser.mm index f8d4dc7d..94603bb5 100644 --- a/ios/htmlParser/HtmlParser.mm +++ b/ios/htmlParser/HtmlParser.mm @@ -1327,8 +1327,9 @@ + (NSString *)tagContentForStyle:(NSNumber *)style ImageData *data = [imageStyle getImageDataAt:location]; if (data != nullptr && data.uri != nullptr) { return [NSString - stringWithFormat:@"img src=\"%@\" width=\"%f\" height=\"%f\"", - data.uri, data.width, data.height]; + stringWithFormat:@"img src=\"%@\" width=\"%d\" height=\"%d\"", + data.uri, (int)floor(data.width), + (int)floor(data.height)]; } } return @"img";