The solution? Round up obvious gang members, who conveniently like to mark it all over their body, throw them in prison, throw away the key. If they get violent in the process then don't even bother with the whole prison thing. Were the people just terrified about this horrible abuse of power? No, their Supreme Court made an exception to allow him to run for another term and he won with 80%+ of the vote, his party gaining a super majority, and El Salvador is rapidly going from one of the most dangerous places on Earth to a very safe one.
"First they came for the gang members... and then life was pretty great and everybody lived happily ever after." BTW similar sorts of crackdowns have also happened in numerous places including Thailand and the Philippines (in both cases over drugs), with similarly resoundingly positive results. Enforcement works.
[1] - https://apnews.com/article/el-salvador-homicides-gangs-bukel...