while IFS= read -r line; do
printf '%s\n' "$line"
done <<< "$var"
----
The same can be done in any Bourne-type shell by using a "here document" (although read -r is POSIX, not Bourne):
while IFS= read -r line; do
printf '%s\n' "$line"
done <
----