Brazil is known for having safety concerns, and in some respects, this reputation is justified. However, if you take reasonable security precautions while visiting El Salvador, you can enjoy a trouble-free vacation in this exotic city.
Exercise caution and be vigilant everywhere you go. This principle applies not only to public transportation and crowded areas but also to driving around the city in a rental car.